home *** CD-ROM | disk | FTP | other *** search
/ Chip: 2005 Utilities / CHIP Utilities 2005 / CHIP Utilities 2005.iso / dosapps / atainf / atainf.doc next >
Encoding:
Text File  |  1996-11-30  |  20.5 KB  |  518 lines

  1.  
  2. ATAINF Version 1.3 - This is the fifth public release of ATAINF.
  3. http://www.ncf.carleton.ca/~aa571
  4.  
  5. ATAINF - What is it?
  6. ------------------
  7.  
  8. ATAINF is a program I wrote to find the parameters and capabilities
  9. of ATA, ATAPI and SCSI drives.  ATA drives are more commonly known as
  10. IDE or EIDE hard drives, and ATAPI are more commonly known as IDE
  11. versions of CDROM drives.  There were only a couple of programs
  12. out there that would dump some of the paramters of IDE hard drives, 
  13. but they had no support for CDROM and most of the time they did
  14. not follow the ATA specs. ATAINF now supports SCSI drives
  15. through the ASPI drivers, ATAPI drives through the ASPI drivers in
  16. Windows 95, ATAPI drivers through the ATASPI drivers, and most other
  17. drives through the native ATA/ATAPI interface.
  18.  
  19. A number of people were asking when I would support Windows 95.  As of
  20. version (1.1), it now supports '95 when run in a DOS box.  There will not
  21. be a GUI version of the program any time soon.  I have also added  
  22. support for SCSI CDROM drives.  
  23.  
  24. One note for Windows 95 users:  At the moment there is no way to get
  25. the information on your ATA drives when running in a DOS box. I'm
  26. looking into the problem, and will release a new version if I can
  27. get it working.  Microsoft seems to have made CDROM drives appear
  28. as if they are SCSI drives, even if they are ATAPI drives when
  29. running '95.  The result of this is that the drive is no longer 
  30. referred to by IO address, IRQ and device #, but is accessed by
  31. Adapter #, SCSI ID, and LUN.  I have included a second program
  32. called SCSIPING in this distribution which will scan all the 
  33. ASPI devices on your machine and should show the Adapter #, ID and 
  34. LUN of any drives.
  35.  
  36. Once I got part of ATAINF running I tried it on a number of machines
  37. to make sure that it would run.  What I found was VERY interesting.
  38. I tried running it on the new Creative Labs HexSpeed drive, and
  39. I found that the drive thinks it is a 2x drive and not a 6x drive.
  40. It displayed that the maximum throughput of the drive was 353 KB/s
  41. instead of 1059 KB/s which is what a 6x drive should display.
  42. I then tried running a performance benchmark program on the drive
  43. and found I couldn't even get 2x throughput.  All I had to do was
  44. to take the dump from ATAINF with me and I had no trouble returning
  45. the drive to the store because of the crap.  I spent $494 CDN for
  46. the drive and only got the performance of a $70CDN drive.  If I 
  47. didn't have ATAINF I would have been screwed.  The following table
  48. will show you how to map the throughput numbers displayed by the
  49. program to the speed of the drive.  You are going to find many drive
  50. manufacturers using different numbers to describe their drives.  For
  51. example you may find someone describing a 4x drive as 600KB/s.  This
  52. would be fine if there were only 2048 bytes per sector on a CD, which
  53. is the sector size of a plain data CD.  In reality a sector is 2352
  54. bytes per sector.  On a data CD the extra bytes are sync marks, error
  55. checks etc.  When you try and start using other modes with the drive,
  56. like XA etc, then you will be limited to the 600 KB/s instead of the
  57. actual 706 KB/s needed to read XA sectors at 4x speed.
  58.  
  59. Speed      Data Rate (KB/s)
  60. ---------------------------------
  61. 1x      |       176
  62. 2x      |       353
  63. 2.2x    |       387
  64. 3x      |       528
  65. 4x      |       706
  66. 6x      |      1059
  67. 8x      |      1412
  68. 10x     |      1765
  69. 16x     |      2824
  70.  
  71. A significant item of information that is returned by ATAINF is 
  72. whether the can read DA frames or not.  The following lines are
  73. from my Sony drive which can read DA:
  74.  
  75. Drive does support reading Red Book audio using the Read-CD command
  76. Drive does support reading Red Book audio with an accurate stream
  77.  
  78. This means that another of my programs CDDA will indeed work with
  79. this drive.  I hear from a lot of people who are trying to use
  80. CDDA and blame my program for the fact that it doesn't work.  By
  81. using ATAINF, anyone with an ATAPI drive can tell if is the fault
  82. of the drive, the fault of the driver or my fault that it doesn't 
  83. work.  For those of you that are interested CDDA is a program which
  84. allows digitally perfect samples from audio CDs.  There is a pointer
  85. to the most recent version of CDDA on my home page:
  86. http://www.ncf.carleton.ca/~aa571
  87. At this moment the most recent version is 1.6, but may take a while to
  88. trickle down through the new Simtel system.
  89.  
  90. Another thing that you can tell with ATAINF is which mode your 
  91. IDE hard drive thinks it is running, as opposed to the maximum
  92. mode it is capable.  I found that on my machine my drive could handle
  93. up to mode 4, but it was stuck in mode 1.  It is just a problem with
  94. my drivers, but I would have never known that I wasn't getting the
  95. most out of my drive.
  96.  
  97. When running under a DOS window under Win95, some machines may support
  98. using ATAPI drives through the ASPI interface.  However, bugs in
  99. Microsoft's drivers prevent this from working on some machines. I have
  100. worked a long time to get this working on a lot of machines, but I
  101. can't guarantee it will work on all machines.  It has taken a significant
  102. amount of effort to get around many of the problems in the device drivers
  103. written by Microsoft.  It appears to be worth the trouble so that you
  104. can have much more control over the drives.
  105. To use the ASPI interface to the ATAPI drives in a DOS window under 
  106. Windows 95, you have to use the /95ATAPI option.
  107.  
  108. As of version 1.3, you can also use ATAINF with ATAPI drives through
  109. the ATASPI drivers.  These drivers are for DOS and Win95 and usually
  110. come as part of "PowerIDE" from Future Domain when you buy their
  111. IDE controller.  However, as far as I can tell, the drivers will
  112. work on any IDE controller, not just the ones from Future Domain.
  113.  
  114. Using the ATASPI drivers is probably the best way to use ATAINF and
  115. ATAPI drives.  It means that I have the most control over the
  116. drive and can bypass all the normal device drivers.  In this way
  117. I can be sure that the device drivers are not at fault when ATAINF
  118. doesn't work.
  119.  
  120. If you have a Future Domain IDE controller and PowerIDE, you are
  121. all set.  You just have to add the device drivers in config.sys
  122. and autoexec.bat. (see below my example)
  123.  
  124. If you don't have a Future Domain product, you will have to find
  125. the ATASPI drivers elsewhere.  You might want to have a look 
  126. at Mediavision's FTP site (ftp.mediavis.com), or their web site
  127. (www.mediavis.com), where they keep update driver files for
  128. many of their products.  You might find update drivers for your
  129. MV600, which runs on a Future Domain controller.
  130.  
  131. The two lines needed in my config.sys file are:
  132. device=c:\ataspi\ataspi16.sys /c:170,15,376h /v
  133. device=c:\ataspi\fdatacd.sys /d:mscd000
  134.  
  135. The line needed in my autoexec.bat file is:
  136. c:\ataspi\mscdex /d:mscd000 /v /e
  137.  
  138. How do I use this program?
  139. --------------------------
  140.  
  141. To run ATAINF, you can just run it from the command line and it
  142. will do the searching for drives in your system.  Because of the
  143. tendancy of the industry to rarely follow standards exactly, the
  144. search routines in ATAINF may not necessarily find or identify
  145. the drives in a machine.  I have also added command line options to
  146. manually enter IO addresses, IRQ values and device numbers.  The
  147. IO addresses can be 1f0, 170, 168, 1e0, or 1e8.  The IRQ values can
  148. be 10, 11, 12, 13, 14, or 15.  The device number can be either 0 or 1.
  149.  
  150. When using the ASPI/ATASPI/95ATAPI options you can optionally enter 
  151. the Adapter number, SCSI ID number and the Logical Unit Number (LUN).
  152.  
  153. The following is a dump of the usage screen that is displayed by the
  154. program.
  155. -----------------------------------------------------------------------
  156. Usage: ATAINF </ASPI> </ATASPI> </95ATAPI> </ATAPI> options
  157. /ASPI    - Use ASPI drivers to talk to SCSI drive
  158. /ATASPI  - Use ATASPI drivers to talk to ATAPI drive
  159. /95ATAPI - Use Win 95 ASPI drivers to talk to ATAPI drive
  160. /ATAPI   - Use native mode ATA/ATAPI drivers
  161.  
  162. Options:
  163. IRQ    - Specify the IRQ of the IDE controller
  164. DEVICE - Specify the Device number of the IDE drive
  165. IO     - Specify the IO address of the IDE controller
  166. ADAPTER- Specify the ASPI/ATASPI adapter number
  167. ID     - Specify the ASPI/ATASPI device ID number
  168. LUN    - Specify the ASPI device logical unit number
  169.  
  170. Examples:
  171. DOS only ATA/ATAPI drive at IO=170, IRQ=15, Device#=0
  172. atainf /io 170 /irq 15 /device 0
  173.  
  174. DOS only ATA/ATAPI drive at IO=170, IRQ=15
  175. atainf /io 170 /irq 15
  176.  
  177. DOS only ATA/ATAPI drive at IO=170
  178. atainf /io 170
  179.  
  180. DOS or Windows SCSI drive at Adapter=0, ID=2, LUN=0
  181. atainf /aspi /adapter 0 /id 2 /lun 0
  182.  
  183. DOS or Windows SCSI drive: search all Adapters, all IDs, all LUNs
  184. atainf /aspi 
  185.  
  186. Windows '95 ATAPI drive at Adapter=0, ID=0
  187. atainf /95atapi /adapter 0 /id 0
  188.  
  189. DOS ATASPI drivers with ATAPI drive at Adapter=0, ID=0
  190. atainf /ataspi /adapter 0 /id 0
  191. -----------------------------------------------------------------------
  192. eg:
  193. ATAINF /io 1f0 /irq 14 /device 0  
  194. (looks only at drive 0 at IO 1f0 and IRQ 14)
  195. or
  196. ATAINF /io 170 /irq 15
  197. (looks at both drive 0 and 1 at IO 170 and IRQ 15)
  198.  
  199.  
  200. The following is a dump from my machine which has a Conner 1.2GB hard
  201. drive and a Toshiba 5302 4x CDROM drive:
  202. ------------------------------------
  203.  
  204. ATA_INF 1.3
  205. Copyright (c) 1995/1996 - Computall Services.
  206.  
  207. Running DOS version 6.22
  208. Will scan IO ports for drives
  209. Will use default IRQs for IO ports for drives
  210. Will scan device numbers for drives
  211.  
  212. Checking for controller at 0x1f0 ...
  213. Found controller at 0x1f0
  214.  
  215. Checking for ATA drive at device 0 ...
  216. Found ATA drive at device 0
  217.  
  218. BIOS Reports
  219. Number of Cylinders               : 619
  220. Number of Heads                   : 64
  221. Number of Sectors per Track       : 63
  222.  
  223.  
  224. ATA Identify Device parameters
  225.  
  226. Model Number                      : Conner Peripherals 1275MB - CFS1275A    
  227. Serial Number                     :           EVB8CT2   
  228.  
  229. Hard Disk Reports
  230. Number of Cylinders (Fixed)       : 2477
  231. Number of Heads                   : 16
  232. Number of Sectors per Track       : 63
  233.  
  234. Controller Revision Number        : 0.28    
  235.  
  236. Able to do Double Word Transfer   : No
  237. Controller type                   : a dual ported multi-sector buffer capable of
  238.                     simultaneous with a read caching capability.
  239. Controller buffer size (bytes)    : 0
  240. Number of ECC bytes transferred   : 4
  241.  
  242. Peripheral Device Type Information:
  243. Rotational speed tolerance is > 0.5%
  244. Disk Transfer rate > 10MBps
  245. Fixed Drive
  246. Head switch time >15 usec
  247. Not MFM encoded
  248. Hard sectored
  249.  
  250. # of secs/interrupt               : 16  Current setting 16
  251. Able to do Double Word Transfer   : No
  252. LBA support                       : Yes
  253. 1219.2MB of LBA addressable              1219.1MB in CHS mode
  254. DMA support                       : Yes
  255. IORDY supported                   : Yes
  256. IORDY can be disabled             : Yes
  257. PIO data txfer cycle timing mode  : 1
  258. SW DMA txfer cycle timing modes   : none, Active: none
  259. MW DMA txfer cycle timing modes   : none, Active: 0
  260.  
  261. ATA-2 features
  262. Advanced PIO txfer modes supported           : 4 3 
  263. Min MW DMA txfer cycle time/word             : 120 ns   16.7MB/s
  264. Mfg Recommended MW DMA txfer Cycle Time      : 120 ns   16.7MB/s
  265. Min PIO txfer Cycle Time w/o Flow Control    : 270 ns   7.4MB/s
  266. Min PIO txfer Cycle Time w IORDY Flow Control: 120 ns   16.7MB/s
  267.  
  268.  
  269. Checking for ATA drive at device 1 ...
  270. No ATA drive found at device: 1
  271. No Data Request: timeout
  272. Checking for ATAPI drive at device 1 ...
  273. No ATAPI drive found at device 1
  274. No Data Request: timeout
  275. ata_status = 0x00
  276. ata_error = 0x00
  277. irq_source = 0x00
  278.  
  279. Checking for controller at 0x170 ...
  280. Found controller at 0x170
  281.  
  282. Checking for ATA drive at device 0 ...
  283. No ATA drive found at device: 0
  284. No Data Request: timeout
  285. Checking for ATAPI drive at device 0 ...
  286. Found ATAPI drive at device 0
  287.  
  288.  
  289. ATAPI Identify Device parameters
  290.  
  291. Device Type                       : CD-ROM Device
  292. Removable                         : Yes
  293. CMD DRQ Type                      : Interrupt DRQ
  294. Command Packet Size               : 12 bytes
  295. Serial Number                     : 1100302955          
  296. Firmware Revision Number          : 1095    
  297. Model Number                      : TOSHIBA CD-ROM XM-5302TA                
  298. DMA support                       : No
  299. LBA support                       : Yes
  300. IORDY supported                   : Yes
  301. IORDY can be disabled             : No
  302. Overlap Operation support         : No
  303. Proxy Interrupt support           : No
  304. Interleaved DMA support           : Yes
  305. PIO data xfer cycle timing mode   : 0
  306. SW DMA txfer cycle timing modes   : none, Active: none
  307. MW DMA txfer cycle timing modes   : none, Active: none
  308. Typical release time after command: 0ns
  309. Typical release time after service: 0ns
  310. Major version number              : Not supported
  311.  
  312.  
  313. ATAPI Drive Capabilities and Mechanical Status parameters
  314.  
  315. (4a)Warning: No Interrupt Timeout: will continue anyway
  316.  
  317. ATA buffer count returning: 56 bytes
  318. Error recovery parameters: 0 
  319. Error retry count: 5
  320. Drive Inactivity timer: 32 seconds
  321. Number of MSF-S Units per MSF-M Unit: 60
  322. Number of MSF-F Units per MSF-S Unit: 75
  323. Logical Block Per Second of Audio Playback: 0
  324. CDDA Output Port 0 Channel Selection: Channel 0, Volume: 0xff
  325. CDDA Output Port 1 Channel Selection: Channel 1, Volume: 0xff
  326. CDDA Output Port 2 Channel Selection: Muted, Volume: 0x00
  327. CDDA Output Port 3 Channel Selection: Muted, Volume: 0x00
  328. Maximum Speed (kB/s): 706
  329. Number of Volume Levels Supported: 255
  330. Buffer size supported by drive (kB): 256
  331. Current selected speed (kB/s): 706
  332. Drive does support Audio Play
  333. Drive does not support delivering a composite Audio/Video stream
  334. Drive does not support digital output (IEC958) on port 1
  335. Drive does not support digital output (IEC958) on port 2
  336. Drive does support reading sectors in Mode 2 Form 1 (XA) format
  337. Drive does support reading sectors in Mode 2 Form 2 format
  338. Drive does support reading multiple session or Photo-CD discs
  339. Drive does support reading Red Book audio using the Read-CD command
  340. Drive does not support reading Red Book audio with an accurate stream
  341. Drive does support commands that return sub-channel data
  342. Drive does not support de-interleaving R-W sub-channel data
  343. Drive does not support C2 error pointers
  344. Drive does support returning the ISRC information
  345. Drive does support returning the UPC information
  346. Drive does support locking media in drive
  347. Drive is in allow lock state
  348. Drive's prevent jumper is present
  349. Drive does support the eject command
  350. Drive loading mechanism is Tray type loading mechanism
  351. Drive does support separate audio level controls
  352. Drive does support separate audio mute controls
  353. Drive does not support Disk Is Present information
  354.  
  355. Checking for ATA drive at device 1 ...
  356. No ATA drive found at device: 1
  357. No Data Request: timeout
  358. Checking for ATAPI drive at device 1 ...
  359. No ATAPI drive found at device 1
  360. No Data Request: timeout
  361.  
  362.  
  363. Checking for controller at 0x1e0 ...
  364. No controller found at 0x1e0
  365.  
  366.  
  367. Checking for controller at 0x1e8 ...
  368. No controller found at 0x1e8
  369.  
  370.  
  371. Checking for controller at 0x168 ...
  372. No controller found at 0x168
  373.  
  374. -------------------------------------------------------
  375. Copying and Registration (does he mean this costs $$$?)
  376. -------------------------------------------------------
  377.  
  378. I am allowing full freedom to copy this program.
  379. It IS a fully functional version.
  380. It is NOT Crippleware!
  381. There is NOT a pro version available for an unreasonable sum of money.
  382.  
  383. If you don't agree with the shareware policy, then you can:
  384. a) use the program anyway and violate the copyright, and as such
  385.    you will probably end up rotting in HE double hockey stick
  386. b) don't use the program at all
  387.  
  388. The registration fee for using ATAINF is now $15 US.  I believe that
  389. this is a fair amount given the amount that the program does.  This
  390. amount can easily be covered by the amount you can save by finding
  391. out that you are being sold a piece of crap before you buy it.
  392.  
  393. I won't be asking for a fee every time a new version comes out.  This
  394. fee will give you a lifetime (as long as I bug fix and add features) 
  395. of free updates via the Internet.  I will also notify registered users 
  396. by email of any new versions for a year.
  397.  
  398. My mail address is:
  399.  
  400.       Jim McLaughlin
  401.       337 Nautica Ct.
  402.       Indian Harbour Beach, FL
  403.       USA
  404.       32937
  405.  
  406. If you have any questions, my email address is jmclaugh@nortel.ca, but RTFM
  407. before you start sending me then questions.
  408. *******
  409. NOTE: the email address change from version 0.9a
  410. NOTE: the address address change from version 1.1a
  411. *******
  412.  
  413. I would also like to try and keep all the files together and unchanged
  414. in the archive, so if you are passing this around don't change the files.
  415. In this distribution the files contained are:
  416.  
  417. ATAINF.EXE - the program itself
  418. ATAINF09.EXE - the first version of the program itself
  419. ATAINF.DOC - this document file
  420. SCSIPING.EXE - a program to scan for drives when using ASPI drivers
  421.  
  422. ATAINF09.EXE is included because there are some machine/drive combinations
  423. that just won't work with ATAINF 1.0 and later.  I don't know why, but
  424. they sometimes work with the first version of ATAINF.  I am only including
  425. it for the people who can't get the newer versions to work.
  426.  
  427. If you are one of those Shareware houses, I don't want to see this program
  428. available for $6.99 plus shipping and handling.  I don't like seeing
  429. the average Joe getting burned for a 10 cent disk, 1 cent label and 2 cents
  430. worth of labour to make the disk, especially when he can get 600+ Meg
  431. of really good stuff from something like the Simtel CD for $25
  432. (Thanks to Keith for keeping Simtel running).
  433.  
  434.  
  435. How to get hold of me for help.
  436. -------------------------------
  437. If you want to make suggestions or want to send compliments you can contact
  438. me at the address below.  I might even listen to a complaint or two.
  439.  
  440. If you would like assistance in solving problems, please include a
  441. dump from the.  You should be able to run the program like this and 
  442. get the dump in a text file:
  443. ATAINF /atapi /io 170 /irq 15 /device 0 >dumpfile.txt
  444.  
  445. I have real difficulty in tracking down problems without the
  446. dumps.  In the past the majority of people asking for help just send
  447. along a short note telling me my program doesn't work, and what
  448. they remember the error messages saying.  This just doesn't cut it.
  449. I have to have the dumps to help.
  450.  
  451. The bottom line - RTFM before writing me.  Also read the alt.cd-rom
  452. FAQ.  Many of your questions can be answered by reading.
  453. EMAIL: jmclaugh@nortel.ca
  454.  
  455. Changes in version 1.3 from  1.0a
  456. ---------------------------------
  457. - added full support for ATAPI drives through either ASPI under Win95
  458.   or ATASPI under DOS
  459. - cleaned up the drive search routines
  460. - cleaned up the displayed info
  461. - removed the dumps from all the cdrom and hard drives - there is a much
  462.   better repository at the Tardis UK web site - there are pointers to
  463.   it on my web site - check it out.
  464.  
  465. Changes in version 1.1a from 1.0a
  466. ---------------------------------
  467. - made significant changes to the command line options to add
  468.   ASPI and SCSI 
  469.  
  470. - added support for SCSI drives through the ASPI interface
  471.  
  472. - added support for ATAPI drives through the ASPI interface on
  473.   machines running Windows 95
  474.  
  475. - added more detail and information in the reports generated
  476.  
  477. - fixed a problem that caused a couple of different drives (ones
  478.   that weren't very ATAPI compliant) to only send half of the
  479.   data to the computer and then hang
  480.  
  481. Changes in version 1.0a from 0.9a
  482. ---------------------------------
  483. - please make note that my new email address is jmclaugh@nortel.ca
  484.  
  485. - added a check to see if the program is running is a DOS box under Windows
  486.   this was done because bad things sometimes happen when you run ATAINF
  487.   and you are not in DOS
  488.  
  489. - the most recent version of ATAINF can be found by looking at my new
  490.   homepage for pointers: http://www.ncf.carleton.ca/~aa571
  491.   this page contains pointers to the most recent drivers for most
  492.   every cdrom drive made
  493.  
  494. - a number of bugs have been fixed
  495.  
  496. - ATAINF will display even more information about your cdrom drive than
  497.   before
  498.  
  499. - there is a work around for the problem in that many drives say they
  500.   use interrupts, but none are ever generated
  501.  
  502. - included dumps from many cdrom and hard drives  - please send me the
  503.   dumps so I can build a complete list - many people will find this 
  504.   information useful when trying to decide on a new drive
  505.  
  506. - added the IO address of 0x1E0 and the interrupts 12 and 13
  507.  
  508.  
  509. Known bugs
  510. ----------
  511. - there are no known bugs at this time
  512.  
  513. - the inability to get ATA drive information when running '95 is
  514.   not a bug, but is something that only seems to run in plain
  515.   DOS, and not in a DOS box.  I'm working on it.
  516.  
  517.  
  518.